package com.ftg.learn.framework.mybatis.javabase.config;

import org.apache.ibatis.io.Resources;

import java.io.IOException;
import java.io.Reader;
import java.util.Properties;

/**
 * @author lijiaxin
 * @version 1.0
 * @date 2023/9/5 10:08
 */

public class Demo {

    public static void main(String[] args) throws IOException {

        Properties p=new Properties();

        //相对路径
        // ./ 当前目录
        // ../ 向上一级

        //工程绝对路径
        // 编译路径开始的绝对地址
        //物理路径


        Reader reader = Resources.getResourceAsReader("com/ftg/learn/framework/mybatis/javabase/config/jdbc.properties");
        p.load(reader);


        System.out.println(p.get("dev.mysql.url"));

    }

}
